﻿using System;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace NTmdb.TestProject
{
    /// <summary>
    ///     This is a test class for TmdbPersonImagesTest and is intended
    ///     to contain all TmdbPersonImagesTest Unit Tests
    /// </summary>
    [TestClass]
    public class TmdbPersonImagesTest
    {
        /// <summary>
        ///     A test for TmdbPersonImages Constructor
        /// </summary>
        [TestMethod]
        public void TmdbPersonImagesConstructorTest()
        {
            var target = new TmdbPersonImages();
            Assert.IsNotNull( target );
        }

        /// <summary>
        ///     A test for Id
        /// </summary>
        [TestMethod]
        public void IdTest()
        {
            var target = new TmdbPersonImages();
            int expected = new Random().Next( 0, Int32.MaxValue );
            int actual;
            target.Id = expected;
            actual = target.Id;
            Assert.AreEqual( expected, actual );
        }

        /// <summary>
        ///     A test for Images
        /// </summary>
        [TestMethod]
        public void ImagesTest()
        {
            var target = new TmdbPersonImages();
            var expected = new List<TmdbImageBase>();
            List<TmdbImageBase> actual;
            target.Images = expected;
            actual = target.Images;
            Assert.AreSame( expected, actual );
        }

        /// <summary>
        ///     A test for Serialize & Deserialize
        /// </summary>
        [TestMethod]
        public void SerializeDeserializeTest()
        {
            Assert.Inconclusive();
        }
    }
}